package com.blog.blogservice.util.constant;

/**
 * @author guanglin.ma
 * @date 2024-03-07 23:30
 */
public class BlogConstant {

    /**
     * 文章集合 key  list
     */
    public static String ARTICLE_LIST = "blog:article:hash-list";

    /**
     * 可见文章 key Zset
     */
    public static String ARTICLE_VISIBLE = "blog:article:visible";

    /**
     * 不可见文章 key Zset
     */
    public static String ARTICLE_INVISIBLE = "blog:article:invisible";

    /**
     * 标签集合 hash
     */
    public static String LABEL_LIST = "blog:label:list";

     /**
     * 分类集合 hash
     */
    public static String CATEGORY_LIST = "blog:category:list";

    /**
     * 标签所属文章 Zset
     */
    public static String ARTICLE_LABEL = "blog:label:%s";

    /**
     * 分类所属文章 Zset
     */
    public static String ARTICLE_CATEGORY = "blog:category:%s";


    public  static String CATEGORY_CODE_PREFIX="CA";

    public  static String LABEL_CODE_PREFIX="LA";

    public  static String ARTICLE_CODE_PREFIX="AR";


}
